Page({
  data: {
    list: []
  },
  onLoad() {
    this.getNotice()
  },
  async getNotice() {
    try {
      const { data } = await wx.http.get('/announcement')
      // console.log(data);
      this.setData({
        list: data
      })
    } catch (error) {
      console.log(error);
    }

  }
})
